home *** CD-ROM | disk | FTP | other *** search
- Path: news.interpath.net!softbase
- From: softbase@mercury.interpath.com (Scott McMahan - Softbase Systems)
- Newsgroups: comp.lang.c
- Subject: Re: Portability of code & skills (Beware of "C" Hackers etc)
- Date: 22 Mar 1996 16:59:47 GMT
- Organization: Interpath -- Providing Internet access to North Carolina
- Message-ID: <4iuma3$aqk@news.interpath.net>
- NNTP-Posting-Host: mercury.interpath.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Graham Perkins (grp@dmu.ac.uk) wrote:
- : Cobol's pattern matched input and
- : pattern editing output is extremely powerful, but C does not even check
- : you pass the same number of print items as you specify, never mind give
- : you the power to control currency sign, leading zero suppression, decimal
- : format, credit/debit formats...
-
- But there's nothing at all in C to prevent writing this kind of highly
- specialized report generation library. You could write it once and use
- it forever. If there was any demand for this, people would be selling
- them. It would be simple to create something like perl's write
- statement in C, or even something as complex as COBOL's editing. If you
- don't like the standard library, roll your own.
-
- :And what about that file handling?
- : Read an arbitrary number of bytes into an un-typed buffer .. that's power?
-
- Yes. You can do ANYTHING with the stream of bytes, including emulate
- structured files using a library.
-
- Scott
-
-